#ifndef GLOBALVAL_H
#define GLOBALVAL_H

#include <QObject>
#include "mqtthandler.h"
//#include "homepage.h"

/**
 * @brief 此类只处理全局变量
 */
class GlobalVal
{
public:
    GlobalVal();
    static MqttHandler *mqtt;
    struct data_node
    {
        int key;  //唯一键值
        QString val;  //数据
    };
    struct data_node buf[14]={{301,0},{302,0},{303,0},{304,0},{305,0},{306,0},{307,0},{308,0},{101,0},{102,0},{103,0},{104,0},{105,0},{106,0}};
    void setValue(int k,QString v);
};



#endif // GLOBALVAL_H
